home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
lstcrc14.arc
/
LC.BAT
next >
Wrap
DOS Batch File
|
1991-09-11
|
800b
|
36 lines
@echo off
rem
rem This quick and dirty batch file was used to verify
rem the errorlevel return logic. You don't have to use
rem it for anything at all, but as long as I made
rem it, I figured I might as well throw it in.
rem
listcrcs %1
if errorlevel 4 goto badnews
if errorlevel 3 goto nofile
if errorlevel 2 goto noareas
if errorlevel 1 goto match
echo ErrorLevel was 0
echo Normal termination! All is well...
goto end
:badnews
echo ErrorLevel was 4 or more -} This should have NEVER happened... Aaargh!
goto end
:nofile
echo ErrorLevel was 3 -} File AREAS.BBS not found
goto end
:noareas
echo ErrorLevel was 2 -} Not a single area found in file AREAS.BBS
goto end
:match
echo ErrorLevel was 1 -} A CRC collision was detected
goto end
:end